package lab02.test22;

public class Test {
    public static void main(String[] args) {
        String result="Hello,World!123";
        char tmp;

        //下标i
        int i;
        for(i=0;i< result.length();i++){
            tmp=result.charAt(i);

            //大写->小写
            if(tmp>='A'&&tmp<='Z'){
                System.out.print((char)(tmp+32));
            }
            //数字->0
            else if(tmp>='0'&&tmp<='9'){
                System.out.print(0);
            }
            //小写不变
            else if(tmp>='a'&&tmp<='z'){
                System.out.print(tmp);
            }
            //其余符号变#
            else{
                System.out.print("#");
            }
        }

    }
}
